<?php

class ActionIndex extends BaseAction
{
    public function run()
    {
        $iUserId = Yii::app()->user->id;
    	$oUser = User::model()->findByPk($iUserId);
    	
        $this->template->oUser = $oUser;
        $this->template->oProfile = Profile::model()->findByPk($oUser->profile_id);
        $this->template->oProfileLegalInfo = ProfileLegalInfo::model()->findByPk($oUser->profile_legal_info_id);
        $this->template->oAddress = Address::model()->findByPk($oUser->address_id);
    }
}